mm-shr: Ignore coding-system `ascii'
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 20 Feb 2017 06:17:20 +0000 (06:17 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 20 Feb 2017 06:17:20 +0000 (06:17 +0000)
* lisp/gnus/mm-decode.el (mm-shr): Ignore coding-system `ascii'.

lisp/gnus/mm-decode.el

index 6683d68a3188b6316953d63c5b6217c423e1d336..becf6d140b10c58f5808ba3258d711c74dcaedad 100644 (file)
@@ -1808,8 +1808,9 @@ text/\\(\\sw+\\)\\(?:;\\s-*charset=\\([^\t\n\r \"'>]+\\)\\)?[^>]*>" nil t)
                                                          nil t))
                       (string-match "\\`html\\'" (match-string 1))))
                mail-parse-charset))
-      (when (or coding
-               (setq coding (mm-charset-to-coding-system charset nil t)))
+      (when (and (or coding
+                    (setq coding (mm-charset-to-coding-system charset nil t)))
+                (not (eq coding 'ascii)))
        (insert (prog1
                    (decode-coding-string (buffer-string) coding)
                  (erase-buffer)